package com.hdax.dm.controller;

import com.hdax.dm.entity.base.DmArea;
import com.hdax.dm.service.AreaService;
import com.hdax.dm.utils.response.CommonResponse;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/base/list")
public class AreaController {

    @Autowired
    private AreaService areaService;

    // 列表页 1. 查询市区API接口
    @PostMapping("querycity")
    private CommonResponse<List<DmArea>> carousel(){
        return areaService.querycity();
    }
}
